FROM openjdk:8-jdk-alpine
MAINTAINER ehm
ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\nhttps://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories
RUN apk --update add curl bash ttf-dejavu && rm -rf /var/cache/apk/*
ADD ./sentinel-dashboard.jar /home/app.jar
ENTRYPOINT ["sh", "-c", "java -jar $JAVA_OPTS /home/app.jar"]